package com.kaizzi.data.jdl.helper;

import com.kaizzi.data.common.utils.DateUtil;
import com.kaizzi.data.common.utils.JsonUtil;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @author Kzen
 * @Description description
 * @date 2020/10/16
 */
@Component
public class PageData1 {


    public String getData() {

        Page1 page1 = new Page1();
        String lastWeekDate = DateUtil.getLastWeekDate();

        page1.setData1(lastWeekDate);
        page1.setData2(DateUtil.getUsDate());

        return JsonUtil.serialize(page1);
    }

    @Data
    private static class Page1{
        private String data1;
        private String data2;
    }
}
